package shared.pojo

import upickle.default._

/**
 * Created by yz on 18/10/2022
 */
object Data {

  object GetAllExampleData {

    case class Request(softKind: String, fileName: String)

    object Request {
      implicit val rw = macroRW[Request]
    }

  }

  object GetAllFileData {

    case class Request(kind: String)

    object Request {
      implicit val rw = macroRW[Request]
    }

  }

  object GetRowCols {

    case class Request(fileName: String)

    object Request {
      implicit val rw = macroRW[Request]
    }


    case class Response(rowNames: List[String],headers:List[String])

    object Response {
      implicit val rw = macroRW[Response]
    }

  }

  object GetNumericColNames {

    case class Request(fileName: String)

    object Request {
      implicit val rw = macroRW[Request]
    }


    case class Response(headers: List[String])

    object Response {
      implicit val rw = macroRW[Response]
    }

  }


}
